<div class="tab-content">
	<div class="tab-pane active">
		<div class="portlet">
			<div class="portlet-title" style="background-color: #EEF4F5;height: 38px;">
			<div class="title-blank">
                	<span style="margin-right: 15px;">
                		<input type="radio" name="mediaTypeRadio" ng-checked="true" 
                		style="position: static;margin: 0px;" ng-click="resource.parentTypeChange(1);">
                		车辆
                	</span>
                	<span style="margin-right: 15px;">
                		<input type="radio" name="mediaTypeRadio" 
                		style="position: static;margin: 0px;" ng-click="resource.parentTypeChange(2);">
                		站点
                	</span>
                </div>
				<a href="javascript:void(0);" class="title-operation search-expand">筛选</a>
					<div class="input-group" style="margin-top: 2px;margin-left: 74%;">
						<input type="text" placeholder="合同编号..." class="form-control"  ng-model="resourceQuery.contractTitle"/>
						<span class="input-group-btn">
							<button type="button" class="btn green-haze" ng-click="resource.query();">
							 <i class="fa fa-search"></i>&nbsp;搜索 <!--  <i class="m-icon-swapright m-icon-white" ></i> -->
							</button>
						</span>
					</div>
			</div>
			<div class="portlet-search-body" style="display: none;">
				<form class="form-inline" role="form">
				<div class="form-group">
					<div class="col-md-4">
						<div class="input-icon">
						  <i class="fa fa-indent"></i>
							 <input class="form-control" placeholder="资源编号" ng-model="resourceQuery.resourceCode">
						</div>
					</div>
				</div>
				<div class="form-group">
					<div class="col-md-4">
						<div class="input-icon">
							<i class="fa fa-lightbulb-o"></i> <select class="form-control"
								 ng-model="resourceQuery.resourceType"
								style="width: 200px; color: #b3b3b3;"
								ng-options="opt.value as opt.name for opt in resourceTypes">
								<option value="">-- 媒体形式 --</option>
							</select>
							
						</div>
					</div>
				</div> 
				<button class="btn btn-success" ng-click="resource.query()" style="background-color: #3E97E4;">
					<i class="fa fa-search"></i> 搜索
				</button>
				<button class="btn btn-success" ng-click="resource.reset()" style="background-color:#C2C5C7;">
					<i class="fa fa-refresh"></i> 重置
				</button>
			</form>
			</div>
			</div>
			</div>
			</div>
			
			<div class="portlet-body" ng-if="resourceQuery.resourceParentType == '1'">
				<div class="table-responsive">
					<table class="table">
					<thead>
					<tr >
						<th>
							 #
						</th>
						<th>
							资源编号
						</th>
						<th>
							合同编号
						</th>
						<!-- <th>
							合同名称
						</th> -->
						<th>
							 线路
						</th>
						<th>
							 车牌
						</th>
						<th>
							媒体形式
						</th>
						<th>
							 资源名称
						</th>
						<th>
							 开始日期
						</th>
						<th>
							结束日期
						</th>
					</tr>
					</thead>
					<tbody>
					<tr ng-repeat="data in dataArray">
						<td>
							 {{$index + 1}}
						</td>
						<td>
							{{data.resourceCode}}
						</td>
						<td>
							{{data.contractNo}}
						</td>
						<!-- <td>
							{{data.contractTitle}}
						</td> -->
						<td>
							{{data.lineNo}}
						</td>
						<td>
							{{data.plateNo}}
						</td>
						<td>
							{{data.mediaName}}
						</td>
						<td>
							{{data.resourceName}}
						</td>
						<td>
							{{data.startDate}}
						</td>
						<td>
							 {{data.endDate}}
						</td>
					</tr>
					</tbody>
					</table>
				</div>
			</div>
			<div class="portlet-body" ng-if="resourceQuery.resourceParentType == '2'">
				<div class="table-responsive">
					<table class="table">
					<thead>
					<tr >
						<th>
							 #
						</th>
						<th>
							资源编号
						</th>
						<th>
							合同编号
						</th>
						<!-- <th>
							合同名称
						</th> -->
						<th>
							站点名称
						</th>
						<th>
							 道路名称
						</th>
						<th>
							 媒体类型
						</th>
						<th>
							 资源名称
						</th>
						<th>
							 开始日期
						</th>
						<th>
							结束日期
						</th>
					</tr>
					</thead>
					<tbody>
					<tr ng-repeat="data in dataArray">
						<td>
							 {{$index + 1}}
						</td>
						<td>
							{{data.resourceCode}}
						</td>
						<td>
							{{data.contractNo}}
						</td>
					<!-- 	<td>
							{{data.contractTitle}}
						</td> -->
						<td>
							{{data.stopName}}
						</td>
						<td>
							{{data.roadName}}
						</td>
						<td>
							{{data.mediaName}}
						</td>
						<td>
							{{data.resourceName}}
						</td>
						<td>
							{{data.startDate}}
						</td>
						<td>
							 {{data.endDate}}
						</td>
					</tr>
					</tbody>
					</table>
				</div>
			</div>
			<div id="page_bar" style="position: relative; margin-top: 5px; margin-bottom: 25px;"></div>
